package com.fyk.mapper;

import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author qazws
 * @Date 2022/8/19 18:37
 * @Version 1.0
 */

@Repository
public interface UserRoleMapper {
    List<Integer> selectRoleByUsername(String username);

    int insertUserAndRole(@Param("userId") Integer userId,@Param("roleId")Integer roleId);

    int deleteRoleByUserId(@Param("userId") Integer userId,@Param("roleId") Integer roleId);

    int deleteUserAndRole(Integer userId);
}
